package blog.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;


@Data
@TableName("chapter_category")
public class ChapterCategory implements Serializable{

    @TableId(type = IdType.AUTO, value = "id")
	private Integer id;

    @TableField("pid")
    private Integer pid;
    
    @TableField("name")
	private String name;
    
    @TableField("gmt_create")
	private Integer gmtCreate;
    
    @TableField("gmt_update")
	private Integer gmtUpdate;
    
    @TableField("serial")
	private Integer serial;

    //'0下架1上架2假删除'
    @TableField("isuse")
	private Integer isuse;

    @TableField(exist = false)
    private List<Chapter> chapterList;

    @TableField(exist = false)
    private ChapterCategory parent;
}
